package com.cskaoyan.market.service;

import com.cskaoyan.market.db.domain.*;
import com.cskaoyan.market.vo.BrandVo;
import com.cskaoyan.market.vo.CategoryVo;

import java.util.List;

public interface AdminGoodsService {
    List<MarketGoods> list(Integer page, Integer limit, String sort, String order, Integer goodsId, String  goodsSn, String name);

    Integer delete(Integer id);

    MarketGoods getGoodsDetail(String id);

    List<CategoryVo> categoryList();

    List<BrandVo> brandList();

    List<MarketGoodsSpecification> getGoodsSpecifications(String id);

    List<MarketGoodsProduct> getGoodsProducts(String id);

    List<MarketGoodsAttribute> getGoodsAttributes(String id);

    MarketCategory findPid(Integer categoryId);

    void updateGoods(MarketGoods goods, List<MarketGoodsAttribute> attributes, List<MarketGoodsProduct> products, List<MarketGoodsSpecification> specifications);

    void insert(MarketGoods goods, List<MarketGoodsAttribute> attributes, List<MarketGoodsSpecification> specifications, List<MarketGoodsProduct> products);
}
